<script type="text/javascript">
var container = $('div.container');
$(document).ready(function() {
	$.metadata.setType("attr", "validate");
	validator = $("#form1").validate({
 	errorContainer: container,
	errorLabelContainer: $("ol", container),
	wrapper: 'li'
 });
});
</script>
<#list items as item>
<#if item.fieldName != "id">
	<#if item.hidden>
		<tr style="display:none">
			<td colspan="2">
				<input type="hidden" name="valueMap['${item.fieldName}']" value="${item.value?default('')}">
			</td>
		</tr>
	<#else>
		<tr>
			<td class="listviewTD" style="width:150px">
				<font color="red">*</font>${item.name}：
			</td>
			<td class="listviewTD">
				<#if item.multiRows==false>
				<input type="text" name="valueMap['${item.fieldName}']" <#if item.validation??>validate="${item.validation}"</#if> class="text" style="width:200px" value="${item.value?default('')}">
				</#if>
				<#if item.multiRows==true>
				<textarea style="width:200px;height:100px" name="valueMap['${item.fieldName}']" <#if item.validation??>validate="${item.validation}"</#if> class="text" >${item.value?default('')}</textarea>
				</#if>
			</td>
		</tr>
	</#if>
</#if>
</#list>